package com.distortiongames.elysium.components 
{
	import com.distortiongames.elysium.math.Vector2D;
	import com.pblabs.core.PBComponent;
	import com.pblabs.time.ITicked;
	import com.pblabs.time.TimeManager;
	import flash.display.Stage;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Jefferson Wagner
	 */
	public class VectorComponent extends PBComponent implements ITicked
	{
		[Inject]
		public var stage:Stage;
		
		[Inject]
		public var timeManager:TimeManager;
		
		private var _vector:Vector2D = new Vector2D();
		
		public function get vector():Vector2D 
		{
			return _vector;
		}
		
		public function set vector(value:Vector2D):void 
		{
			_vector = value;
		}
		
		override protected function onAdd():void 
		{
			 super.onAdd();
			 timeManager.addTickedObject(this, 10);
		}
		
		public function onTick() : void {
			applyBindings();
		}
		
		override protected function onRemove():void 
		{
			super.onRemove();
		}
	}

}